import {formatDate} from '@/common/formatter'

export default
  [
    { type: 'selection' }, // 复选框
    {
      label: '名称',
      prop: 'name',
      width: 200
    },
    {
      label: '编码',
      prop: 'code',
      width: 150
    },
    {
      label: '排序',
      prop: 'position',
      width: 80
    },
    {
      label: '备注',
      prop: 'remark',
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      width: 200,
      formatter(val) {
        return formatDate(val);
      }
    },
  ]

